package com.example.roadeyeserver.controller;

import com.example.roadeyeserver.entity.vo.GantryRoadAreaInfoVO;
import com.example.roadeyeserver.result.Result;
import com.example.roadeyeserver.service.GantryRoadAreaInfoService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("gantryRoadAreaInfo")
public class GantryRoadAreaInfoController {

    @Resource
    private GantryRoadAreaInfoService gantryRoadAreaInfoService;

    @PostMapping("getAllRoad")
    public Result<List<GantryRoadAreaInfoVO>> getAllRoad() {
        return gantryRoadAreaInfoService.getAllRoad();
    }

    @PostMapping("getAllArea")
    public Result<List<GantryRoadAreaInfoVO>> getAllArea() {
        return gantryRoadAreaInfoService.getAllArea();
    }

}
